﻿using System.Collections.ObjectModel;

namespace Bookworm.Core
{
    public sealed class Author
    {
        public string Name { get; set; }
        public AuthorType Type { get; set; }
        public string Description { get; set; }
    }

    public sealed class AuthorCollection : Collection<Author>
    {
        public void Add(string name, AuthorType type, string description)
        {
            var author = new Author();
            author.Name = name;
            author.Type = type;
            author.Description = description;
            Add(author);
        }
    }

    public enum AuthorType
    {
        Primary,
        Contributor,
        Foreword,
    }
}
